#ifndef __BOARD_H__
#define __BOARD_H__

#define N32G45X_SRAM_SIZE           144
#define N32G45X_SRAM_START          (0x20000000 + N32G45X_SRAM_SIZE/2 * 1024)
#define N32G45X_SRAM_END            (0x20000000 + N32G45X_SRAM_SIZE * 1024)

#define PRINT_RCC_FREQ_INFO

/* STM32 固件库头文件 */
#include "n32g45x.h"
#include <stdlib.h>
 
/* RT-Thread相关头文件 */
#include <rthw.h>
#include <rtthread.h>
 
/* 开发板硬件bsp头文件 */
#include "led.h"
#include "usart.h"
#include "key.h"
#include "beep.h"
#include "dht11.h"
#include "bh1750.h"
#include "oled.h"
#include "esp8266.h"


void rt_hw_us_delay(rt_uint32_t us);
void systick_delay_us(u32 nus);
void systick_delay_ms(u16 nms);
void delay_us(u32 nus);

#endif /* __BOARD_H__ */

